reversed

function reversed(): list<T>

Returns a new list with the elements of this list in reverse order.

Examples:

  • [].reversed() returns []

  • [1].reversed() returns [1]

  • [1, 2, 3].reversed() returns [3, 2, 1]

Since

0.11.0